<?php

namespace app\exception;

use app\consts\Code;

class ValidationException extends BizException
{
    protected $errors;
    public function __construct(array $errors)
    {
        parent::__construct(Code::INVALID_PARAMS);

        $this->errors = $errors;
    }

    public function getErrors()
    {
        return $this->errors;
    }
}